package com.sds.sweng.swat.miplatform.ui.design.layouts;

import org.eclipse.draw2d.GridData;
import org.eclipse.swt.SWT;

public class EasyGridData {

	public static GridData create(int widthHint, int heightHint) {
		return create(widthHint, heightHint, 1, 1, SWT.FILL, SWT.FILL);
	}

	public static GridData create(int widthHint, int heightHint, int colspan, int rowspan) {
		return create(widthHint, heightHint, colspan, rowspan, SWT.FILL, SWT.FILL);
	}

	public static GridData create(int widthHint, int heightHint, int colspan, int rowspan, int verticalAlignment, int horizontalAlignment) {
		GridData gridData = new GridData();
		gridData.widthHint = widthHint;
		gridData.heightHint = heightHint;
		gridData.horizontalSpan = colspan;
		gridData.verticalSpan = rowspan;
		gridData.verticalAlignment = verticalAlignment;
		gridData.horizontalAlignment = horizontalAlignment;

		return gridData;
	}

}
